package rad.framework.embedded;

import java.util.Arrays;

import rad.framework.jboss.seam.SeamTestCase;

import org.hibernate.validator.InvalidStateException;

/**
 * This class simply wraps the real base class to facilitate switching
 * implementations.
 *
 * @author boudyacho
 */
public class ContainerTestCase extends SeamTestCase {

	public ContainerTestCase(String name) {
		super(name);
	}

	@Override
	protected void setUp() throws Exception {
		super.setUp();
	}

	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	/**
	 * Help identify unexpected validation errors.
	 */
	protected void runTest() throws Throwable {
		try {
			super.runTest();
		} catch (InvalidStateException e) {
			System.out.println("Validation Errors: "
					+ Arrays.toString(e.getInvalidValues()));
			throw e;
		}
	}
}
